package com.cn.项目.飞机预约管理系统.UserFrame;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class Myorder extends JFrame {
    public Myorder(){
        this.setLayout(new BorderLayout());
        JLabel jLabel = new JLabel("我的订单");
        jLabel.setFont(new Font("华文楷书", 1, 30));
        JPanel p1 = new JPanel();
        p1.add(jLabel,JLabel.CENTER);
        this.add(p1,"North");

        this.add(new MyorderPanel(),"Center");

        JPanel p2 = new JPanel();
        JButton jButton = new JButton("取消订单");
        jButton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                 new CancellationOrder();
            }
        });
        p2.add(jButton);

        this.add(p2,"South");

        this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
        this.setSize(500,500);
        this.setVisible(true);
        this.setLocation(500, 250);
    }



}
